package com.ruoyi.email.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.dto.CheckCodeResultDto;
import com.ruoyi.email.domain.Email;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.mail.MessagingException;
import java.util.Date;

/**
 * @author xgw
 */
public interface IEmailService {


    void checkMail(String receiveEmail, String subject, String emailMsg);

    Boolean sendTextMail(String receiveEmail, String subject, String emailMsg) ;

    public AjaxResult sendEmail(Email email);

    public AjaxResult verityEmailCode( String emailCode, String tos);

}
